import request from "@/utils/request";

// 获取地图数据
export const getBaseMap = (params: any) => {
  return request({
    url: "/screen/secondHouse/getBaseMap",
    method: "get",
    params: params,
  });
};

// 获取二手房销售价格指数统计
export const getPersonHouseNumber = (params: any) => {
  return request({
    url: "/screen/secondHouse/getSecondHousePriceStatistics",
    method: "post",
    data: params,
  });
};

// 获取二手房交易面积及套数
export const getSecondHouseTradeAreaAndNumber = (params: any) => {
  return request({
    url: "/screen/secondHouse/getSecondHouseTradeAreaAndNumber",
    method: "post",
    data: params,
  });
};

// 获取二手房销售价格走势
export const getPersonHouseFundStatistics = (params: any) => {
  return request({
    url: "/screen/secondHouse/getSecondHousePriceTrend",
    method: "post",
    data: params,
  });
};

// 获取二手住宅销售走势
export const getSecondHouseSaleTrend = (params: any) => {
  return request({
    url: "/screen/secondHouse/getSecondHouseSaleTrend",
    method: "post",
    data: params,
  });
};

// 获取住宅租赁价格指数
export const getPersonHouseStatistics = (params: any) => {
  return request({
    url: "/screen/secondHouse/getSecondHouseLease",
    method: "post",
    data: params,
  });
};

// 获取二手房销售面积与价格
export const getSecondHouseSalePriceAndArea = (params: any) => {
  return request({
    url: "/screen/secondHouse/getSecondHouseSalePriceAndArea",
    method: "post",
    data: params,
  });
};

// 获取各地区住房空置率走势
export const getVacantHouseTrend = (params: any) => {
  return request({
    url: "/screen/secondHouse/getVacantHouseTrend",
    method: "post",
    data: params,
  });
};
